package com.haredot.dto;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

public class FindPwdDTO {

    @NotEmpty(message = "邮箱不允许为空")
    @Email(message = "邮箱格式不正确")
    private String email ;

    @NotEmpty(message = "验证码不允许为空")
    private String code ;

    @NotEmpty(message = "密码不允许为空")
    @Length(max = 20, min = 6, message = "密码长度必须在 6 ~ 20 位之间")
    private String password ;

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
